#include "stdafx.h"
#include "CFile.h"
#include <stdio.h>

CFile::CFile(const char_16 * szFile)
{
	FILE * pFile = 0;
	_wfopen_s(&pFile, szFile, L"rb");
	m_uiLength = ftell(pFile);
	m_pBuffer = new uint_8[m_uiLength];
	fread_s(m_pBuffer, m_uiLength, m_uiLength, 1, pFile);
}
CFile::~CFile()
{
	delete[] m_pBuffer;
}
